import BaseModel from '../BaseModel'

import Product from './Product';

/**
 * 订单
 */
export default class Order extends BaseModel  {

    /**订单号*/
    public order_number = ""
    /**购买者手机号码*/
    public buyer_phone = ""
    /**订单总价*/
    public total_price = 0
    /**最终订单总价（用户付款金额）*/
    public total_price_final = 0
    /**订单产品种数*/
    public item_count = 0
    /**订单所有产品总件数*/
    public total_count = 0
    /**订单状态(0:待审核，1:待拣货，2:已出库，-1:已取消)*/
    public order_status = 0
    /**取货码*/
    public pickup_code = ""
    /**产品*/
    public products = new Array<Product>()
}
